package com.emm.yixun.openapi.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.AgentListResDto;
import com.emm.yixun.common.app.QueryAgentListByCustomerPhoneReqDto;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.hander.base.CommonAbstractHander;
import com.emm.yixun.openapi.vo.QueryAgentListByCustomerPhoneReqVo;
import com.emm.yixun.system.service.UserServiceFacade;

/**
 * ClassName:queryAgentListByCustomerPhoneHander <br/>
 * Date:     2018年01月31日  <br/>
 * @author   jzliu
 * @version  
 * @since    JDK 1.7
 * @see 	 
 */
@Service("queryAgentListByCustomerPhoneHander")
public class QueryAgentListByCustomerPhoneHander extends CommonAbstractHander{

	@Autowired
	private UserServiceFacade userServiceFacade;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		QueryAgentListByCustomerPhoneReqVo req = (QueryAgentListByCustomerPhoneReqVo) reqDto;
		QueryAgentListByCustomerPhoneReqDto reqDto1 = req.getParams();
		BaseResponseDTO<AgentListResDto> res = new BaseResponseDTO<AgentListResDto>();
		res.setResData(userServiceFacade.agentListByCustomerPhone(reqDto1));
		return res;
	}

}

